package com.six.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName tb_bottom_article
 */
@ApiModel(description = "")
@TableName(value ="tb_bottom_article")
@Data
public class BottomArticle implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId
    private String id;

    /**
     * 导航名称
     */
    @ApiModelProperty("导航名称")
    private String name;

    /**
     * 启用状态
     */
    @ApiModelProperty("启用状态")
    @TableField(value = "is_disable",fill = FieldFill.INSERT)//添加时自动填充
    private Integer isDisable;

    /**
     * 逻辑删除
     */
    @ApiModelProperty("逻辑删除")
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)//添加时自动填充
    private Integer isDeleted;

    /**
     * 父类id
     */
    @ApiModelProperty("父类id")
    private String parentId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)//添加时自动填充
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @TableField(value = "gmt_Modified",fill = FieldFill.INSERT_UPDATE)//添加时自动填充
    private Date gmtModified;

    @TableField(exist = false)
    private List<BottomArticle> children;

    @TableField(exist = false)
    private Article article;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}